﻿using UnityEngine;
using System.Collections;

public class Lifetime : MonoBehaviour {

	public float time = 1f;

	// Update is called once per frame
	void Update () {
		time -= Time.deltaTime;
		if (time < 0) Destroy(gameObject);
	}
}
